package com.fortune.dao;

import com.fortune.constants.enums.In;
import com.fortune.dto.in.ddataAnalysisDto.CommodityInventoryLedgerDto;
import com.fortune.dto.in.ddataAnalysisDto.DorderSummaryDto;
import com.fortune.vo.ddateAnalysis.ClientPro;
import com.fortune.vo.ddateAnalysis.DdataProduct;
import com.fortune.vo.ddateAnalysis.ExpenseAccount;
import com.fortune.vo.ddateAnalysis.proStore;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/7/9 0009.
 */
public interface DdataAnalysisDao {

    List<ClientPro> findOrderSummaryList(@Param("dto")DorderSummaryDto dorderSummaryDto,@Param("did")String did);

    int findOrderSummaryListCount(@Param("did")String did);

    List<DdataProduct> findMid(@Param("did")String did);

    List<DdataProduct> findPro(@Param("mid")String mid);

    List<DdataProduct> findPro2(@Param("did")String did);

    Integer findNum(@Param("dto")DorderSummaryDto dorderSummaryDto,@Param("id")String id,@Param("proId")String proId,@Param("did")String did);

    Integer findNums(@Param("dto")DorderSummaryDto dorderSummaryDto,@Param("id")String id,@Param("proId")String proId,@Param("did")String did);

    String findBarcode(@Param("proId")String proId);

    List<proStore> findStore(@Param("did")String did);

    Float findInStock(@Param("storeId")String storeId,@Param("proId")String proId,@Param("did")String did,@Param("mid")String mid);

    List<ExpenseAccount> findCommodityInventoryLedgerList(@Param("dto")CommodityInventoryLedgerDto commodityInventoryLedgerDto,@Param("did")String did);

    int findCommodityInventoryLedgerListCount(@Param("dto")CommodityInventoryLedgerDto commodityInventoryLedgerDto,@Param("did")String did);

}
